﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Communergy.Powermeter
{
    public class PowermeterData
    {
        public string AuthToken { get; set; }
        public string PowermeterBaseUrl { get; set; }
        public string DeviceName { get; set; }
        public string UserId { get; set; }
        public string SecurityZone { get; set; }
        public string Measurement { get; set; }

        public string UserDeviceBaseUrl
        {
            get
            {
                string userDeviceBaseUrl = string.Format("{0}user/{1}/{2}/variable/{3}.{4}", 
                                                this.PowermeterBaseUrl, 
                                                this.UserId, 
                                                this.SecurityZone, 
                                                this.DeviceName,
                                                this.Measurement);
                return userDeviceBaseUrl;
            }
        }
    }
}
